package com.mbigger.grpcclient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {
    @Autowired
    private HelloWorldClient helloWorldClient;

    @GetMapping("/sayHello")
    public String sayHello(){
        return helloWorldClient.sayHello("John", "Doe");
    }
}
